//
//  UIButton+TYZAdd.h
//  VehicleInsuranceSupport
//
//  Created by TangBin on 2019/11/4.
//  Copyright © 2019 TangBin. All rights reserved.
//


#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (TYZAdd)

/**
 创建按钮

 @param superView 父视图
 @param frame frame
 @param font font description
 @param action action
 @param block block description
 @return return value description
 */
+ (UIButton *)createWithButton:(nullable UIView *)superView frame:(CGRect)frame font:(UIFont *)font action:(nullable SEL)action propertiesBlock:(void(^)(UIButton *button))block;

/// 创建按钮
/// @param superView 父视图
/// @param frame 大小位置
/// @param font 字的大小
/// @param target 目标 针对事件的
/// @param action 事件
/// @param block block description
+ (UIButton *)createWithButton:(nullable UIView *)superView frame:(CGRect)frame font:(UIFont *)font target:(nullable id)target action:(nullable SEL)action propertiesBlock:(void(^)(UIButton *button))block;


@end

NS_ASSUME_NONNULL_END
